<div id="add-data">
<?php echo $this->Form->create('Laundry', array('url' => '/' . $this->params['url']['url'])); ?>
<h2><?php echo $country; ?></h2>
<table>
	<tr> 
		<th>Energy</th> 
		<th></th>
		<th>Cost (Euro)</th>  
		<th>Emission (kg CO2)</th> 

	</tr> 
	<?php foreach($energytypes AS $usagetype): ?> 
	<tr> 
		<td><?php echo $usagetype['Usagetype']['name']; ?></td>
		<td>1 <?php echo $usagetype['Usagetype']['unit']; ?></td>
		<td><input name="data[Cost][<?php echo $usagetype['Usagetype']['id']; ?>][cost]" type="text" value="<?php echo (!empty($data['Cost'][$usagetype['Usagetype']['id']]['cost'])) ? $data['Cost'][$usagetype['Usagetype']['id']]['cost'] : 0; ?>" /></td>
		<td><input name="data[Cost][<?php echo $usagetype['Usagetype']['id']; ?>][emission]" type="text" value="<?php echo (!empty($data['Cost'][$usagetype['Usagetype']['id']]['emission'])) ? $data['Cost'][$usagetype['Usagetype']['id']]['emission'] : 0; ?>" /></td>
	</tr>
	<?php endforeach; ?> 
	<tr> 
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr> 
		<th>Additive</th> 
		<th></th> 
		<th>Cost (Euro)</th>  
		<th>Emission (kg CO2)</th> 

	</tr> 
	<?php foreach($additivetypes AS $additivetype): ?> 
	<tr> 
		<td><?php echo $additivetype['Usagetype']['name']; ?></td>
		<td>1 <?php echo $usagetype['Usagetype']['unit']; ?></td>
		<td><input name="data[Cost][<?php echo $additivetype['Usagetype']['id']; ?>][cost]" type="text" value="<?php echo (!empty($data['Cost'][$additivetype['Usagetype']['id']]['cost'])) ? $data['Cost'][$additivetype['Usagetype']['id']]['cost'] : 0; ?>" /></td>
		<td><input name="data[Cost][<?php echo $additivetype['Usagetype']['id']; ?>][emission]" type="text" value="<?php echo (!empty($data['Cost'][$additivetype['Usagetype']['id']]['emission'])) ? $data['Cost'][$additivetype['Usagetype']['id']]['emission'] : 0; ?>" /></td>
	</tr>
	<?php endforeach; ?> 
</table>
<?php echo $this->Form->end('Save'); ?>
</div>